COMPILER=g++
TARGET=main

${TARGET}: main.o app.o tran.o net.o link.o phys.o com.o
	${COMPILER} -o $@ $^
main.o:Main.cpp
	${COMPILER} -o $@ -c $<
app.o:./Net/ApplicationLayer.cpp
	${COMPILER} -o $@ -c $<
tran.o:./Net/TransportLayer.cpp
	${COMPILER} -o $@ -c $<
net.o:./Net/NetworkLayer.cpp
	${COMPILER} -o $@ -c $<
link.o:./Net/LinkLayer.cpp
	${COMPILER} -o $@ -c $<
phys.o:./Net/PhysicalLayer.cpp
	${COMPILER} -o $@ -c $<
com.o:Computer.cpp
	${COMPILER} -o $@ -c $<


clean:
	rm -f *.o



